const express = require('express');
const leanRoutes = require('./lean.route');
const safeRoutes = require('./safety.route');
const commonRoutes = require('./common.route');
const progressRoutes = require('./progress.route');
const reportRoutes = require('./report.route')
const personnelRoutes = require('./personnel.route')
const equipmentRoutes = require('./equipment.route')
const vehicleRoutes = require('./vehicle.route')
const dataRoutes = require('./data.route')
const attendenceRoutes = require('./attendence.route')
const xionganRoutes = require('./xiongan.route')
const router = express.Router(); // eslint-disable-line new-cap

/** GET /health-check - Check service health */
router.get('/health-check', function (req, res) {
    res.json({ "status": "ok" })
})


router.use('/lean', leanRoutes); //support lean page
router.use('/safety', safeRoutes); //support safe page
router.use('/common', commonRoutes); //support common page
router.use('/progress', progressRoutes); //support building progress page
router.use('/report', reportRoutes);
router.use('/equipment', equipmentRoutes);
router.use('/personnel', personnelRoutes);
router.use('/vehicle', vehicleRoutes);
router.use('/data', dataRoutes);
router.use('/attendence', attendenceRoutes)
router.use('/webpage', xionganRoutes)
module.exports = router;
